package com.qf.serivce.Impl;

import com.qf.mapper.ShortSortMapper;
import com.qf.pojo.Car;
import com.qf.serivce.ShortSortSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShortSortSerivceimpl implements ShortSortSerivce {
    @Resource

    private ShortSortMapper shortSortMapper;


            @Override
            public List<Car> selectAll(Integer getid) {
                List<Car> cars = shortSortMapper.selectID(getid);
                return cars;
            }

            @Override
            public List<Car> selectprice(Integer getid) {
                List<Car> selectpriceone = shortSortMapper.selectpriceone(getid);
                return selectpriceone;
            }

            @Override
            public Car findCar(Integer cid) {
                Car car = shortSortMapper.finCar(cid);
                return car;
            }
        }
